import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const SEAT: AppRouteRecordRaw = {
  path: '/seat',
  name: 'seat',
  redirect: '/seat/index',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.seat',
    requiresAuth: true,
    order: 0,
    hideChildrenInMenu: true,
    hideInMenu: true,
  },
  children: [
    {
      path: 'index',
      name: 'SeatIndex',
      component: () => import('@/views/seat/index.vue'),
      meta: {
        locale: 'menu.seat.index',
        activeMenu: 'seat',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default SEAT;
